package com.cap.dreamcircle.Model.Impl;

import com.cap.dreamcircle.Api.CommonService;
import com.cap.dreamcircle.Model.IExternalModel;
import com.cap.dreamcircle.Utils.ServiceFactory;
import com.google.gson.JsonObject;

import org.json.JSONObject;

import rx.Observable;

/**
 * Created by liucxu on 2017/8/22.
 */

public class ExternalModelImpl implements IExternalModel {
    @Override
    public Observable<JsonObject> getExternalRequest(String url) {
        return ServiceFactory.GetInstance().createService(CommonService.class).getExternalRequest(url);
    }
}
